package com.wisdytech.linkdcs.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wisdytech.linkdcs.equipment.model.EquipUsers;
import com.wisdytech.linkdcs.system.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author Yanghu
 * @since 2017-09-16
 */
@Mapper
public interface ISysUserDao extends BaseMapper<SysUser> {
    
    
    List<SysUser> selectAllUsers(Map<String,String> params);
    /**
     * 通过用户名查询对应的用户对象
     * @param loginName 登录用户名
     * @return 用户对象
     */
    SysUser getUserByName(String loginName);

    /**
     * 通过id查询对应的用户信息
     * @param id 主键id
     * @return 用户信息
     */
    SysUser getUserById(String id);
    
    
	List<SysUser> getAllUserLists(Map<String, String> params);
	
	List<EquipUsers> selectEquipUsers(@Param("equipCode")String equipCode);


}